﻿package com.example.news;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;


class MyViewHolder extends RecyclerView.ViewHolder {
    View dataView;
    ImageView newsHeadImg;
    TextView  tvTitle;
    TextView tvAuthor;
    TextView tvTime;
    public MyViewHolder(View itemView) {
        super(itemView);
        dataView=itemView;
        newsHeadImg=itemView.findViewById(R.id.img_headImage);
        tvTitle=itemView.findViewById(R.id.tv_title);
        tvAuthor=itemView.findViewById(R.id.tv_author);
        tvTime=itemView.findViewById(R.id.tv_time);
    }

}
